<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" isELIgnored="false"%>

<%
	request.setAttribute("title","测试用户详情");
	request.setAttribute("modelConfigPath", "acc");
%>

<%@ include file="/WEB-INF/views/shared/master/contentHeader.jsp"%>
<style type="text/css">
p{font-size: 20px;margin: 0 10px 10px 10px;color: cadetblue;}
.content{
	margin-buttom:28px;
}
</style>

<t:panel cssClass="panel-flat form-detailed" customBody="true" customHead="true">
    <div class="detailed-navbar-content panel-body content">
       
        <t:form commandName="customerDemo" action="/admin/acc/customerDemo/save" method="post" cssClass="form-horizontal">
               <div class="hide">
				   <t:hidden path="id" />
				   <t:hidden path="userIdentity" />
				   <t:hidden path="refereeId" />
				   <t:hidden path="refereeIdentity" />
				   <input type="hidden" id="referee" value="${referee}">
				   <input type="hidden" id="cusUserIdentity" value="${cusUserIdentity}">
			   </div>
            <t:formgroup>
                <t:label path="username" cssClass="col-sm-2" />
                <t:input path="username" colClass="col-sm-4" />
            </t:formgroup>
            <t:formgroup>
                <t:label path="level" cssClass="col-sm-2" />
                <t:select2 path="level" colClass="col-sm-4" />
            </t:formgroup>
      
        </t:form>
    </div>
    <div class="navbar-fixed-bottom">
    <t:panelFoot headingBtnCssClass="heading-btn pull-right-important">
		<t:button icon="icon-floppy-disk" onclick="saveData()"
			cssClass="btn-info" csize="sm">保存</t:button>
	</t:panelFoot>
	</div>
</t:panel>

<script type="text/javascript">
	function saveData(){
		cusUserIdentity
		var referee = $("#referee").val();
		var cusUserIdentity = $("#cusUserIdentity").val();
		if(referee != null && referee != ''){
			$("#refereeId").val(referee);
		}
		if(cusUserIdentity != null && cusUserIdentity != ''){
			$("#refereeIdentity").val(cusUserIdentity);
		}
		if (!$("form:first").valid()){
			return;
		}
		$("form:first").submit();
	}	
</script>
<%@ include file="/WEB-INF/views/shared/base/scripts/jqueryui.jsp"%>
<%@ include
	file="/WEB-INF/views/shared/base/scripts/limitless/default/formselects.jsp"%>
<%@ include
	file="/WEB-INF/views/shared/base/scripts/limitless/default/formstyling.jsp"%>
<%@ include
	file="/WEB-INF/views/shared/base/scripts/limitless/default/formselects.jsp"%>
<%@ include
	file="/WEB-INF/views/shared/base/scripts/limitless/default/formpickers.jsp"%>
<%@ include file="/WEB-INF/views/shared/master/dialog.jsp"%>
<%@ include file="/WEB-INF/views/shared/master/contentFooter.jsp"%>
